<!DOCTYPE html>
<html ng-app="theApp">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title><?php $view['slots']->output('title', 'Welcome!') ?></title>
		<link href="<?php echo $view['assets']->getUrl('css/bootstrap.css') ?>" type="text/css" rel="stylesheet" />
		<link href="<?php echo $view['assets']->getUrl('css/jquery-ui.min.css') ?>" type="text/css" rel="stylesheet" />
		<link href="<?php echo $view['assets']->getUrl('css/themain.css') ?>" type="text/css" rel="stylesheet" />
		<link href="<?php echo $view['assets']->getUrl('css/markitup/set.css') ?>" type="text/css" rel="stylesheet" />
		<link href="<?php echo $view['assets']->getUrl('css/markitup/style.css') ?>" type="text/css" rel="stylesheet" />
    </head>
    <body>
	<div class="container">
		<div class="row">
			<div class="span10">
				<h1>The header</h1>
			</div>
			<div class="span2">
				<?php if ($view['security']->isGranted('ROLE_USER')): ?>
					Hello <a href="#"><?php echo $app->getUser()->getUsername(); ?></a>
					<br/>
					<a href="<?php echo $view['router']->generate('logout'); ?>">Logout</a>
				<?php else: ?>
					<a href="<?php echo $view['router']->generate('login'); ?>">Login</a>
					or
					<a href="<?php echo $view['router']->generate('register'); ?>">Register</a>
				<?php endif; ?>
			</div>
		</div>
		<div class="row">
			<div class="span2">	
				
			</div>
			<div class="span10">
				<?php $view['slots']->output('_content') ?>	
			</div>
		</div>
		<div class="row">
			<div class="span12">
				Copyright &copy;
                                <span class="example" data-dropdown="#dropdown-3">Example</span>
			</div>
		</div>
	</div>
	<script src="<?php echo $view['assets']->getUrl('bundles/fosjsrouting/js/router.js') ?>"></script>
	<script type="text/javascript" src="<?php echo $view['router']->generate('fos_js_routing_js', array('callback' => 'fos.Router.setData')) ?>"></script>
	<!--<script src="<?php //echo $view['assets']->getUrl('js/fos_js_routes.js') ?>"></script>-->
	
	<script src="<?php echo $view['assets']->getUrl('js/jquery-1.9.1.min.js') ?>"></script>
	<script src="<?php echo $view['assets']->getUrl('js/jquery-ui.min.js') ?>"></script>
	<script src="<?php echo $view['assets']->getUrl('js/angular.min.js') ?>"></script>
	<script src="<?php echo $view['assets']->getUrl('js/jquery.markitup.js') ?>"></script>
	<script src="<?php echo $view['assets']->getUrl('js/controllers.js') ?>"></script>
    </body>
</html>